﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace IteBooks.API.Library.WindowsFormSample
{
    public partial class Teste : UserControl
    {
        public Teste()
        {
            InitializeComponent();
            this.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.panel1.Height = this.panel1.Height == 23 ? 135 : 23;

            this.Dock = DockStyle.Top;
            
        }
    }
}
